Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 4 - Movie Resource Formats / Using Media Information Atoms


Finding a Sample

When it displays a movie or track, QuickTime tells the appropriate media handler to access the media data for a particular time. The media handler must correctly interpret the data stream to retrieve the requested data. In the case of video media, the media handler traverses several atoms to find the location and size of a sample for a given media time. The media handler does the following:

  1. Determines the time in the media time coordinate system.
  2. Examines the time-to-sample atom to determine the sample number that contains the data for the specified time.
  3. Scans the sample-to-chunk atom to discover which chunk contains the sample in question.
  4. Extracts the offset to the chunk from the chunk offset atom.
  5. Finds the offset within the chunk by using the sample size atom.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996